/**
 * 
 */
package com.vision.core.cm.serv.rpc;

import java.util.List;

import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.vision.core.cm.db.data.Company;
import com.vision.core.cm.exception.RpcException;

/**
 * @author Mark
 *
 */
@RemoteServiceRelativePath("companies")
public interface CompanyService extends AbstractService<Company> {

	
	/**
	 * Activates the company.
	 * @param entity
	 * @return
	 * @throws RpcException
	 */
	Company activate(Company entity) throws RpcException;
	
	/**
	 * Deactivates the company.
	 * @param entity
	 * @return
	 * @throws RpcException
	 */
	Company deactivate(Company entity) throws RpcException;

	/**
	 * @return
	 * @throws RpcException
	 */
	List<Company> getNameAndIdOnly()throws RpcException;
}
